class Anamial:
    def __init__(self,name,zhong):
        self.name=name
        self.zhong=zhong
    def run(self):
        print(f'{self.name}正在跑,此行为导致它的忠诚度上涨了{self.zhong}')
    def eat(self):
        print(f'{self.name}正在吃饭,此行为导致它的忠诚度上涨了{self.zhong}')

class Dog(Anamial):
    def __init__(self,name,zhong,age):
        super().__init__(name,zhong)

        self.age=age

    def eat(self):
        super().eat()
        print(f'吃完之后显得年轻了{self.age}岁,',end='',sep=',,,')

class cat(Dog):
    def __init__(self,name,zhong,age,sex):
        super().__init__(name,zhong,age)
        self.sex=sex
    def eat(self):
        super().eat()
        print(f'像个{self.sex}孩子')


aa=Anamial('小白',34,)
aa.run()

bb=Dog('小黑',23,1)
bb.eat()

cc=cat('大黄',34,2,'女')
cc.eat()